<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单布局</title>
    <style>
        input {
            margin-top: 12px;
        }
    </style>
</head>

<body>
    <form action="cs.html" method="get" name="from1">
        <h3>输入课程成绩</h3>
        姓名：<input type="text" name="name" title="请输入你的姓名"><br>
        高等数学：<input type="text" size="15" name="mathGrades"><br>
        大学物理： <input type="text" size="15" name="physicsGrades"><br>
        性别：<input type="radio" value="man" name="sex" id="male"> <label for="male">男</label>
        <input type="radio" value="woman" name="sex" id="fmale"><label for="fmale">女</label><br>
        兴趣爱好：<input type="checkbox" name="hobby" id="" value="eat">吃
        <input type="checkbox" name="hobby" id="" value="sleep">睡觉
        <input type="checkbox" name="hobby" id="" value="study">学习<br>
        <div>
            上传文件：<input type="file" name="" id=""><br>
            <img src="../images/C7A66EDD14CE021BEB77559E9B40A0F8.jpg" alt="" width="300px">
        </div><br>
        <div>
            籍贯：<select name="" id="">
                <option value="jiangsu">江苏</option>
                <option value="beijing">北京</option>
                <option value="shanghai">上海</option>
                <option value="guangzhou">广州</option>
                <option value="shenzheng">深圳</option>
            </select>
        </div>
        <br>
        <div>
            多行文本框：<textarea cols="20" rows="1" name="" id=""></textarea>
        </div><br>
        <div>
            <input type="text" size="5"> 文本框长度为5<br>
            <input type="text" maxlength="5">文本输入内容长度5<br>
        </div>
        <br><input type="submit" name="submit" value="成绩提交">
        <input type="reset" value="成绩重置" name="reset" id="">
        <input type="button" name="registered" value="注册用户" onclick="javascript:alert('注册新用户');">
    </form>
    <script>
        var inputs = document.querySelectorAll("input");
        for (var i = 0; i < inputs.length; i++) {
            inputs[i].addEventListener('mouseover', function () {
                console.log(1);

            })
        }

    </script>
</body>

</html>